

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * 运行木马程序（运行危险木马）
 *
 * @author 86188
 * @date 2023/09/07
 */
public class Main {
    public static void main(String[] args) throws InterruptedException, IOException {
        String userDir = System.getProperty("user.dir");
        String filePath = userDir + File.separator +"src/main/resources/木马程序.bat";
        Process exec = Runtime.getRuntime().exec(filePath);

        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(exec.getInputStream()));
        String readText;
        while ((readText=bufferedReader.readLine())!=null){
            System.out.println(readText);
        }
        System.out.println("执行木马成功，你玩啦哈哈哈哈");
    }
}
